package com.xmut.databean;

import com.xmut.entity.Topic;

/**
 *
 */
public class TopicListDatabean extends Topic {

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public TopicListDatabean(String userName, Topic topic) {
        this.userName = userName;
        setTopicName(topic.getTopicName());
        setTopicContent(topic.getTopicContent());
        setUserId(topic.getUserId());
        setClickNumber(topic.getClickNumber());
        setCommentNumber(topic.getCommentNumber());
        setUpdDate(topic.getUpdDate());
        setUpdTime(topic.getUpdTime());
        setSysId(topic.getSysId());
        setCreateDate(topic.getCreateDate());
        setCreateTime(topic.getCreateTime());
        setPraiseNumber(topic.getPraiseNumber());
    }

    public TopicListDatabean() {
    }
}
